﻿using System;
using System.Collections.Generic;
using System.IO;

namespace ImageProcessing.Model.DataCenter
{
    /// <summary>
    /// 数据中心 案件信息接收接口
    /// </summary>
    public class DCUploadCaseParMsg : DCUploadParMsg
    {
        /// <summary>
        /// 案字号
        /// </summary>
        public string caseNumber { get; set; }

        /// <summary>
        /// 案件编号
        /// </summary>
        public string caseCode { get; set; }

        /// <summary>
        /// 案件名称
        /// </summary>
        public string caseName { get; set; }

        /// <summary>
        /// 承办庭室
        /// </summary>
        public string caseUndertakingDepartment { get; set; }

        /// <summary>
        /// 承办人
        /// </summary>
        public string caseUndertaker { get; set; }

        /// <summary>
        /// 立案时间
        /// </summary>
        public string caseFileTime { get; set; }

        /// <summary>
        /// 预字号
        /// </summary>
        public string caseBeforehandNumber { get; set; }

        /// <summary>
        /// 原告
        /// </summary>
        public string casePlaintiffName { get; set; }

        /// <summary>
        /// 被告
        /// </summary>
        public string caseDefendantName { get; set; }
    }

    /// <summary>
    /// 上传文件参数
    /// </summary>
    public class DCUploadParMsg
    {
        /// <summary>
        /// 文件对象 文件流
        /// </summary>
        public FileStream upfile { get; set; }

        /// <summary>
        /// 存储路径，可以为空
        /// </summary>
        public string prefixName { get; set; }

        private string _fileSuffix { get; set; }

        /// <summary>
        /// 文件扩展名，小写
        /// </summary>
        public string fileSuffix
        {
            get { return _fileSuffix; }
            set { _fileSuffix = value.ToLower(); }
        }

        /// <summary>
        /// 文件大小，字节数
        /// </summary>
        public long fileSize { get; set; }

        /// <summary>
        /// 文件hash值
        /// </summary>
        public int fileHash { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string fileName { get; set; }

        /// <summary>
        /// 文件页数
        /// </summary>
        public int filePages { get; set; }

        /// <summary>
        /// 是否有关联子文件
        /// </summary>
        public bool isAssociate { get; set; }

        /// <summary>
        /// 关联文件对象
        /// </summary>
        public string associates { get; set; }

        public int caseId { get; set; }
        public string recognizeSourceFileId { get; set; }
    }

    ///// <summary>
    ///// 数据中心 文件获取接口
    ///// </summary>
    //public class DCDownloadParMsg
    //{
    //    /// <summary>
    //    /// 文件id
    //    /// </summary>
    //    public Guid fileId { get; set; }
    //}
    /// <summary>
    /// 数据中心 文件关联数据获取接口参数
    /// </summary>
    //public class DCAssociateFilesParMsg : DCDownloadParMsg
    //{
    //    /// <summary>
    //    /// 文件标识：不传是全部、0 非图片、1 图片
    //    /// </summary>
    //    public int fileFlag { get; set; }
    //}
}